package com.nus.fellowmark.dao;

import com.nus.fellowmark.entity.ModuleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
@Mapper
public interface ModuleDao extends BaseMapper<ModuleEntity> {
	/**
     * select module by moduleCode
     * @param code
     * @return
     */
    @Select("SELECT * FROM module WHERE code=#{moduleCode}")
    ModuleEntity selectByCode(String moduleCode);
}
